<div style="font-size:10pt;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
    <a href="{url link='public.groups.view' id=$aGroupData.id}">{$aGroupData.title|escape}</a>
    &gt;&gt;
    <a href="{url link='public.groups.gallery' id=$aGroupData.id}">{language text="group_gallery_947"}</a>
    &gt;&gt;
    {$aImage.title|escape}
</div>
<br />
<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="group_gallery"}</td>
            </tr>
        </table>
        <br/>

        <div style="font-size:8pt;text-align:center;">
        	<div style="padding:5px;">{$aImage.title}</div>
        	{if !getParam('use_lightbox')}
        	{img max_width="$iImgViewSize" alt="" src="$sActualImage" src_def="design/pic/noimage.jpg" def_width="100" def_height="100" border="0"}
        	{else}
        	{if $iWidth > $iImgViewSize || $iHeight > $iImgViewSize}        	
        	{img rel="lytebox" onclick="startLytebox('mainimage');" id="mainimage" max_width="$iImgViewSize" alt="" src="$sActualImage" src_def="design/pic/noimage.jpg" def_width="100" def_height="100" border="0"}
        	{else}
        	{img max_width="$iImgViewSize" alt="" src="$sActualImage" src_def="design/pic/noimage.jpg" def_width="100" def_height="100" border="0"}
        	{/if}
        	{/if}
        	<div style="font-size:8pt;">{language text='Mod_Site.added_by'}: <a href="{url link='public.user' name=$aImage.user}">{$aImage.user}</a></div>
        	<div style="padding:5px;">
        		{if $bShowPrev}<a href="{url link='public.groups.gallery' id=$aGroupData.id image=$aPrevImage.id}">&lt;&lt; {language text="prev_pic_793"}</a> | {/if} <a href="{url link='public.groups.gallery' id=$aGroupData.id}">{language text="gallery_index"}</a>
        		{if $bShowNext} | <a href="{url link='public.groups.gallery' id=$aGroupData.id image=$aNextImage.id}">{language text="next_pic_794"} &gt;&gt;</a>{/if}
        	</div>
        </div>
    </td>
</tr>
</table>